package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 
 *
 * @author code-generate
 * @date 2022-01-10
 */
@Data
@DbTable(tableName = "t_task_feedback")
public class TaskFeedback extends BaseEntity {
        /**
     * 任务id
     */
    @DbTableField(columnName = "c_task_id", dbType = DbTypeEnum.INTEGER)
    public Integer taskId ;

    /**
     * 用户/部门 ID
     */
    @DbTableField(columnName = "c_obj_id", dbType = DbTypeEnum.INTEGER)
    public Integer objId ;

    /**
     * 类型 0 用户 1 部门
     */
    @DbTableField(columnName = "c_obj_type", dbType = DbTypeEnum.INTEGER)
    public Integer objType ;

    /**
     * 完成情况 0 待完成 1已完成 -1 未完成
     */
    @DbTableField(columnName = "c_status", dbType = DbTypeEnum.INTEGER)
    public Integer status ;

    /**
     * 完成时间
     */
    @DbTableField(columnName = "c_finish_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime finishDate ;

    /**
     * 补充说明
     */
    @DbTableField(columnName = "c_content", dbType = DbTypeEnum.VARCHAR)
    public String content ;

    /**
     * 完成人id
     */
    @DbTableField(columnName = "c_user_id", dbType = DbTypeEnum.INTEGER)
    public Integer userId ;

    /**
     * 修改人 
     */
    @DbTableField(columnName = "c_db_update_id", dbType = DbTypeEnum.INTEGER)
    public Integer dbUpdateId ;

    /**
     * 修改时间
     */
    @DbTableField(columnName = "c_db_update_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime dbUpdateDate ;

    /**
     * 下发部门
     */
    @DbTableField(columnName = "c_dept_name", dbType = DbTypeEnum.VARCHAR)
    public String deptName ;

    /**
     * 下发人员
     */
    @DbTableField(columnName = "c_user_name", dbType = DbTypeEnum.VARCHAR)
    public String userName ;

    /**
     * 审核 0：未审核  1：已审核
     */
    @DbTableField(columnName = "c_state", dbType = DbTypeEnum.INTEGER)
    public Integer state ;

    /**
     * 下发用户id
     */
    @DbTableField(columnName = "c_issue_user_id", dbType = DbTypeEnum.INTEGER)
    public Integer issueUserId ;

    /**
     * 下发部门id
     */
    @DbTableField(columnName = "c_issue_dept_id", dbType = DbTypeEnum.INTEGER)
    public Integer issueDeptId ;


}
